package com.system.wechat.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.wechat.domain.Course;
import com.system.wechat.service.CourseService;
import com.system.wechat.mapper.CourseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Admin
* @description 针对表【course(课程)】的数据库操作Service实现
* @createDate 2024-12-17 15:17:15
*/
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course>
    implements CourseService{
    @Autowired
    private CourseService courseService;

    /**
     * @param content
     * @return
     */
    @Override
    public List<Course> findByKeyword(String content) {
        QueryWrapper<Course> wrapper = new QueryWrapper<>();
        wrapper.like("title",content);
        List<Course> list = courseService.list(wrapper);
        return list;
    }
}




